import { Rate } from 'antd'

export const AntdRatePropsType = [
  {
    name: 'allowHalf',
    label: '是否允许半选',
    type: 'select',
    options: [
      {
        label: '是',
        value: true
      },
      {
        label: '否',
        value: false
      }
    ]
  },
  {
    name: 'count',
    label: 'star 总数',
    type: 'inputNumber',
    default: 5
  }

]

export const AntdRate = ( props ) => {
  return <Rate {...props} style={props.style} />
}